<?php
/**
 * Created by PhpStorm.
 * User: zhan
 * Date: 2017/12/27  9:17
 */
namespace app\api\controller;
use think\Db;

class System extends Base
{
    //检查权限作用域
    protected $beforeActionList = [
        'checkPrimaryScope' => [
            'except' => ''
        ],
        'autoReceipt' => [
            'except' => ''
        ],
    ];

    /**
     * 开关店铺列表
     */
    public function open()
    {
        $result =  (new \app\api\logic\System())->open();
        return $this->ajaxReturn($result);
    }
    /**
     * 店铺分类列表
     */
    public function category()
    {
        $result =  (new \app\api\logic\System())->category();
        return $this->ajaxReturn($result);
    }
    /**
     * 添加修改店铺分类
     */
    public function category_edit()
    {
        $result =  (new \app\api\logic\System())->category_edit();
        return $this->ajaxReturn($result);
    }
    /**
     * 店铺分类详情
     */
    public function category_detail()
    {
        $result =  (new \app\api\logic\System())->category_detail();
        return $this->ajaxReturn($result);
    }
    /**
     * 删除店铺分类
     */
    public function category_del()
    {
        $result =  (new \app\api\logic\System())->category_del();
        return $this->ajaxReturn($result);
    }
    /**
     * 商品列表
     */
    public function goods()
    {
        $result =  (new \app\api\logic\System())->goods();
        return $this->ajaxReturn($result);
    }
    /**
     * 商品详情
     */
    public function goods_detail()
    {
        $result =  (new \app\api\logic\System())->goods_detail();
        return $this->ajaxReturn($result);
    }

    /**
     * 添加修改商品
     */
    public function goods_edit()
    {
        $result =  (new \app\api\logic\System())->goods_edit();
        return $this->ajaxReturn($result);
    }

    /**
     * delete商品详情图
     */
    public function goods_imgs_del()
    {
        $result =  (new \app\api\logic\System())->goods_imgs_del();
        return $this->ajaxReturn($result);
    }

    /**
     * 添加修改商品详情图
     */
    public function goods_imgs_edit()
    {
        $result =  (new \app\api\logic\System())->goods_imgs_edit();
        return $this->ajaxReturn($result);
    }

    /**
     * 设置登录密码
     */
    public function set_password()
    {
        $result =  (new \app\api\logic\System())->setPassword();
        return $this->ajaxReturn($result);
    }
    /**
     * 设置支付密码
     */
    public function set_paypwd()
    {
        $result =  (new \app\api\logic\System())->set_paypwd();
        return $this->ajaxReturn($result);
    }
    /**
     * 改绑手机
     */
    public function bind()
    {
        $result =  (new \app\api\logic\System())->bind();
        return $this->ajaxReturn($result);
    }

    /**
     * 营业时间
     */
    public function opentime()
    {
        $result =  (new \app\api\logic\System())->opentime();
        return $this->ajaxReturn($result);
    }
    /**
     * 配送时间
     */
    public function deliverytime()
    {
        $result =  (new \app\api\logic\System())->deliverytime();
        return $this->ajaxReturn($result);
    }
    /**
     * 订餐电话
     */
    public function tell()
    {
        $result =  (new \app\api\logic\System())->tell();
        return $this->ajaxReturn($result);
    }
    /**
     * 店铺简介
     */
    public function des()
    {
        $result =  (new \app\api\logic\System())->des();
        return $this->ajaxReturn($result);
    }
    /**
    *  店铺价起送
    */
    public function full_distribution()
    {
        $full_distribution =  (new \app\api\logic\System())->full_distribution();
        return $this->ajaxReturn($full_distribution);
    }
    /**
     * 预订单
     */
    public function book()
    {
        $result =  (new \app\api\logic\System())->book();
        return $this->ajaxReturn($result);
    }
    /**
     * 上传多图片
     */
    public function del_images()
    {
        $result =  (new \app\api\logic\System())->del_images();
        return $this->ajaxReturn($result);
    }
    /**
     * 营业资质认证
     */
    public function auth()
    {
        $result =  (new \app\api\logic\System())->auth();
        return $this->ajaxReturn($result);
    }
    /**
    *   营业执照图片
    */
    public function license_image()
    {
        $license_image =  (new \app\api\logic\System())->license_image();
        return $this->ajaxReturn($license_image);
    }
    /**
    *   食品图片
    */
    public function food_image()
    {
        $food_image =  (new \app\api\logic\System())->food_image();
        return $this->ajaxReturn($food_image);
    }
    /**
     * 评论列表
     */
    public function comment()
    {
        $result =  (new \app\api\logic\System())->comment();
        return $this->ajaxReturn($result);
    }
    /**
     * 评论回复
     */
    public function reply()
    {
        $result =  (new \app\api\logic\System())->reply();
        return $this->ajaxReturn($result);
    }
    /**
     * 意见反馈
     */
    public function feedback()
    {
        $result =  (new \app\api\logic\System())->feedback();
        return $this->ajaxReturn($result);
    }
    /**
     * 申请修改
     */
    public function basic()
    {
        $result =  (new \app\api\logic\System())->basic();
        return $this->ajaxReturn($result);
    }
    /**
     * 申请修改地址
     */
    public function address()
    {
        $result =  (new \app\api\logic\System())->address();
        return $this->ajaxReturn($result);
    }
    /**
     * 二维码列表
     */
    public function qrcode()
    {
        $result =  (new \app\api\logic\System())->qrcode();
        return $this->ajaxReturn($result);
    }
    /**
     * 二维码生成
     */
    public function createqrcode()
    {
        $result =  (new \app\api\logic\System())->createqrcode();
        return $this->ajaxReturn($result);
    }

    /**
     * 二维码生成
     */
    public function management()
    {
        $result =  (new \app\api\logic\System())->management();
        return $this->ajaxReturn($result);
    }

    /**
     * 删除二维码
     */
    public function qrcode_del()
    {
        $result =  (new \app\api\logic\System())->qrcode_del();
        return $this->ajaxReturn($result);
    }
    /**
     * 绑定银行卡
     */
    public function bindcard()
    {
        $result =  (new \app\api\logic\System())->bindcard();
        return $this->ajaxReturn($result);
    }
    /**
     * 银行卡详情
     */
    public function bankdetail()
    {
        $result =  (new \app\api\logic\System())->bankdetail();
        return $this->ajaxReturn($result);
    }
    /**
     * 解绑银行卡
     */
    public function unbundling()
    {
        $result =  (new \app\api\logic\System())->unbundling();
        return $this->ajaxReturn($result);
    }
/**
* 申请提现
*/
    public function apply()
    {
        $result =  (new \app\api\logic\System())->apply();
        return $this->ajaxReturn($result);
    }
    /**
     * 商户零钱
     */
    public function balance()
    {
        $result =  (new \app\api\logic\System())->balance();
        return $this->ajaxReturn($result);
    }
    /**
     * 提现记录
     */
    public function withdrawals()
    {
        $result =  (new \app\api\logic\System())->withdrawals();
        return $this->ajaxReturn($result);
    }
    /**
     * 自提订单核销
     */
    public function order_write(){
        $result =  (new \app\api\logic\System())->order_write();
        return $this->ajaxReturn($result);
    }
    /**
     * 订单查询
     */
    public function orderlist(){
        $result =  (new \app\api\logic\System())->orderlist();
        return $this->ajaxReturn($result);
    }
    /**
     * 订单详情
     */
    public function orderdetail(){
        $result =  (new \app\api\logic\System())->orderdetail();
        return $this->ajaxReturn($result);
    }
    /**
     * 订单处理
     */
    public function orderdeal(){
        $result =  (new \app\api\logic\System())->orderdeal();
        return $this->ajaxReturn($result);
    }
    /**
     * 门店信息
     */
    public function info(){
        $result =  (new \app\api\logic\System())->info();
        return $this->ajaxReturn($result);
    }
    /**
     * 运营时间
     */
    public function time(){
        $result =  (new \app\api\logic\System())->time();
        return $this->ajaxReturn($result);
    }
    /**
    *   上传店铺头像
    */
    public function update_headimage(){
        $update_headimage =  (new \app\api\logic\System())->update_headimage();
        return $this->ajaxReturn($update_headimage);
    }
    /**
    *   商户通知查询
    */
    public function shop_notice(){
        $shop_notice =  (new \app\api\logic\System())->shop_notice();
        return $this->ajaxReturn($shop_notice);
    }
    /**
    *   新订单通知
    */
    public function neworder_notice(){
        $neworder_notice =  (new \app\api\logic\System())->neworder_notice();
        return $this->ajaxReturn($neworder_notice);
    }
    /**
    *   预订单通知
    */
    public function preorder_notice(){
        $preorder_notice =  (new \app\api\logic\System())->preorder_notice();
        return $this->ajaxReturn($preorder_notice);
    }
    /**
    *   商品下架
    */
    public function goods_state(){
        $goods_state =  (new \app\api\logic\System())->goods_state();
        return $this->ajaxReturn($goods_state);
    }
    /**
    *   上传店铺图片
    */
    public function save_images(){
        $save_images =  (new \app\api\logic\System())->save_images();
        return $this->ajaxReturn($save_images);
    }
    /**
    *   打印机列表
    */
    public function PrinterList(){
        $PrinterList =  (new \app\api\logic\System())->PrinterList();
        return $this->ajaxReturn($PrinterList);
    }
    /**
    *   添加打印机
    */
    public function add_list(){
        $add_list =  (new \app\api\logic\System())->add_list();
        return $this->ajaxReturn($add_list);
    }
    /**
    *   删除打印机
    */
    public function del_list(){
        $del_list =  (new \app\api\logic\System())->del_list();
        return $this->ajaxReturn($del_list);
    }
    /**
    *   查询打印机状态
    */
    public function queryPrinterStatus(){
        $snlist = '';
        $queryPrinterStatus =  (new \app\api\logic\System())->queryPrinterStatus($snlist);
        return $this->ajaxReturn($queryPrinterStatus);
    }
    /**
    *   打印订单
    */
    public function wp_print(){
        $wp_print =  (new \app\api\logic\System())->wp_print();
        return $this->ajaxReturn($wp_print);
    }

    /**
     * 标签打印订单
     */
    public function wp_receipt_print()
    {
        $wp_receipt_print = (new \app\api\logic\System())->wp_receipt_print();
        return $this->ajaxReturn($wp_receipt_print);
    }

    /**
     * 配送地址列表
     */
    public function address_list()
    {
        $result =  (new \app\api\logic\System())->address_list(); 
        return $this->ajaxReturn($result);
    }
    /**
     * 添加修改配送地址
     */
    public function address_edit()
    {
        $result =  (new \app\api\logic\System())->address_edit();
        return $this->ajaxReturn($result);
    }
    /**
     * 删除配送地址
     */
    public function address_del()
    {
        $result =  (new \app\api\logic\System())->address_del();
        return $this->ajaxReturn($result);
    }
    /**
    * 明细佣金
    */
    public function commission_detail()
    {
        $result =  (new \app\api\logic\System())->commission_detail();
        return $this->ajaxReturn($result);
    }
    /**
    * 自提返利
    */
    public function mention_commission_detail()
    {
        $result =  (new \app\api\logic\System())->mention_commission_detail();
        return $this->ajaxReturn($result);
    }
}